<template>
	<view>
		<dynamicForm ref="form" @eventReceiver="eventReceiver" @setBtnLoad="setBtnLoad" />
	</view>
</template>

<script>
	import dynamicForm from '@/pages/components/dynamicForm'
	export default {
		components: {
			dynamicForm,
		},
		props: {
			config: {
				type: Object,
				default: () => {}
			},
		},
		methods: {
			eventReceiver(formData, eventType) {
				this.$emit('eventReceiver', formData, eventType)
			},
			setBtnLoad(val) {
				this.$emit('setBtnLoad', val)
			}
		}
	}
</script>